/**
 * 编辑器工具栏样式
 */

.editor-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 8px;
  background-color: #f5f5f5;
  border-bottom: 1px solid #e8e8e8;
  min-height: 32px;
}

.editor-toolbar-left,
.editor-toolbar-middle,
.editor-toolbar-right {
  display: flex;
  align-items: center;
}

.editor-toolbar-left {
  flex: 0 0 auto;
  margin-right: 8px;
}

.editor-toolbar-middle {
  flex: 1 1 auto;
  justify-content: center;
  padding: 0 8px;
}

.editor-toolbar-right {
  flex: 0 0 auto;
  margin-left: 8px;
}

/* 响应式布局 */
@media (max-width: 1200px) {
  .editor-toolbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 12px;
  }

  .editor-toolbar-left,
  .editor-toolbar-middle,
  .editor-toolbar-right {
    width: 100%;
    margin: 4px 0;
  }

  .editor-toolbar-middle {
    justify-content: flex-start;
    padding: 8px 0;
  }
}

/* 按钮样式 */
.editor-toolbar .ant-btn {
  margin-right: 4px;
  height: 24px;
  padding: 0 8px;
  font-size: 12px;
  line-height: 22px;
}

.editor-toolbar .ant-btn:last-child {
  margin-right: 0;
}

/* 分隔线样式 */
.editor-toolbar .ant-divider-vertical {
  height: 20px;
  margin: 0 8px;
}

/* 开关样式 */
.editor-toolbar .ant-switch {
  margin-right: 8px;
}

/* 编码选择器样式 */
.editor-toolbar .encoding-selector {
  min-width: 120px;
} 